package com.fengxu.springcloud.controller;

import com.fengxu.springcloud.service.IMessageProvider;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class SendMessageController {

    @Autowired
    private IMessageProvider messageProvider;

    // 发送消息
    @GetMapping("/send")
    public String sendMsg(){
       return "消息发送成功:" + messageProvider.send();
    }
}
